package com.lijie.redission.common.redisDelayQueue;


import com.lijie.redission.common.redisDelayQueue.RedisDelayQueueHandle;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author 李杰
 * @create 2024-05-27-15:51
 */
@Slf4j
@Component
public class OrderPaymentTimeoutHandler implements RedisDelayQueueHandle<Map> {
    @Override
    public void execute(Map map) {
        log.info("(收到订单支付超时延迟消息) {}", map);
        // 订单审核超时，将状态更改为取消 (产品说该功能点去掉不做)

        log.info("测试，假装状态变成了取消"+map.get("orderId"));


    }
}